<template>
  <div>
    <!-- 商品分类导航 -->
    <TypeNav :firstShowSort="true" :hovorShowSort="false"></TypeNav>
    <!--列表-->
    <ListContainer></ListContainer>
    <!--今日推荐-->
    <Recommend></Recommend>
    <!-- 商品排行 -->
    <Rank></Rank>
    <!-- 猜你喜欢 -->
    <Like></Like>
    <!--楼层-->
    <Floor v-for="(data,i) in floorList" :key="i" :floor="data"></Floor>
    <!--商标-->
    <Brand></Brand>
  </div>
</template>

<script>
import Brand from './Brand'
import ListContainer from './ListContainer/index.vue'
import Recommend from './Recommend/index.vue'
import Rank from './Rank/index.vue'
import Floor from './Floor/index.vue'
import Like from './Like/index.vue'
import { mapState } from 'vuex'

export default {
  components: { Brand, ListContainer, Recommend, Rank, Floor, Like },
  computed: {
    ...mapState({
      floorList: (state) => {
        return state.home.floor
      }
    })
  }
}
</script>

<style></style>
